package com.gujia.model;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * Created by GuJia on 2017/6/17.
 */
public class Question {

   /* DROP TABLE IF EXISTS `question`; CREATE TABLE `question` (
            `id` INT NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL, `content` TEXT NULL,
            `user_id` INT NOT NULL, `created_date` DATETIME NOT NULL, `comment_count` INT NOT NULL, PRIMARY KEY (`id`),
                INDEX `date_index` (`created_date` ASC));*/
    private int id;
    private  String title;
    private  String content;
    private  int userId;
    private  Date createdDate;
    private int commentCount;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }
}
